﻿@model Zatify.WebUI.Models.BillingTransactionHistoryForPromotionViewModel
@{
    ViewBag.Title = "Billing";
    ViewBag.ContentTitle = "Billing";
    Layout = "~/Views/Shared/_ContentLayout.cshtml";
}
@section Styles
{
    <style type="text/css">
        .inner_container
        {
            float: none;
        }
    </style>
}
<div class="business_interface_area">
    <div class="business_profile_categories">
        <div class="label_text current_account_balance">
            <strong>Promotion @Model.PromotionName:</strong>
        </div>
        <div class="label_text current_account_balance transaction_history_tt">
            Transaction History</div>
        <table cellspacing="0" cellpadding="0" border="0" class="billing_tabel">
            <tbody>
                <tr>
                    <th>
                        Date
                    </th>
                    <th>
                        Description
                    </th>
                    <th class="z_balance">
                        Amount
                    </th>
                    <th class="z_balance">
                        Balance
                    </th>
                </tr>
                @for (int i = 0; i < Model.BillingTransactionHistoryForPromotionList.Count; i++)
                {
                    <tr class="@((i % 2 == 0) ? "billing_row1" : "billing_row2")">
                        <td>
                            @Model.BillingTransactionHistoryForPromotionList[i].Date.Value.ToString("MM/dd/yyyy")
                        </td>
                        <td>
                            @Model.BillingTransactionHistoryForPromotionList[i].Description
                        </td>
                        <td class="z_balance">
                            @Model.BillingTransactionHistoryForPromotionList[i].Amount.ToString("c")
                        </td>
                        <td class="z_balance">
                            $@Model.BillingTransactionHistoryForPromotionList[i].Balance.ToString("0.00")
                        </td>
                    </tr>
                }
            </tbody>
        </table>
        <div class="billing_control">
        </div>
    </div>
    <div class="clearfix">
    </div>
</div>
